package com.imooc.mall.service;

import com.imooc.mall.exception.ImoocMallException;
import com.imooc.mall.model.pojo.User;
import org.springframework.stereotype.Service;

@Service
public interface UserService {
    User getUser();

    /**
     * 注册用户
     */
    public void register(String username,String password) throws ImoocMallException;

    /**
     * 用户登录
     */
    User login(String username, String password);


    void updateSignature(User user);

    Boolean checkAdminRole(User user);
}
